#ifndef __HMI_H__
#define __HMI_H__

#include "main.h"


void HMI_send_string(uint32_t baseAddress,char* name, char* showdata);
void HMI_send_float(uint32_t baseAddress,char* name, float num);
void HMI_Wave(uint32_t baseAddress,char* name, int ch, int val);
void HMI_Wave_Fast(uint32_t baseAddress,char* name, int ch, int count, int* show_data);
void HMI_Wave_Clear(uint32_t baseAddress,char* name, int ch);
void HMI_SHOW(void);

extern unsigned int voltage_value;
extern unsigned int frequency_value;
extern uint32_t current_value;
extern uint32_t power_value;
extern uint32_t power_consume_value;

extern unsigned int power_factor_value;
extern unsigned int harmony_current_value;
extern unsigned int thd_display_value;
extern unsigned int base_wave_value;
extern unsigned int twice_wave_value;
extern unsigned int third_wave_value;
extern unsigned int forth_wave_value;
extern unsigned int fifth_wave_value;
extern unsigned int sixth_wave_value;
extern unsigned int seventh_wave_value;
extern unsigned int eighth_wave_value;
extern unsigned int ninth_wave_value;
extern unsigned int tenth_wave_value;

#endif



